<?php if(!empty($videos)): ?>

    <?php foreach($videos as $key => $video ): ?>

        <?php //echo $video->getTitle() ?>
        <?php echo $video->getVideoSrc() ?>
        <?php if( $sf_user->isAuthenticated() == true && $sf_user->hasCredential('Admin') ): ?>
            <div id="" class="edit" style="float:left;">
                <?php echo link_to(image_tag('delete.png', array('style' => 'border:0px;', 'title' => __('disable'))), 'video/disable?id=' . $video->getId()); ?>
            </div>
        <?php endif; /* END IF ( admin ) */ ?>
    <?php endforeach; ?>
<?php endif; ?>

<?php if( $sf_user->isAuthenticated() == true && $sf_user->hasCredential('Admin') ): ?>
    <div id="" class="edit">
            <?php echo link_to(image_tag('monitor.gif', array('style' => 'border:0px;', 'title' => __('Attach video'))), 'video/create?obj_type=' . $obj_type . '&obj_id=' . $obj_id); ?>
    </div>
<?php endif;?>